setTargetFragment
Deprecated
Instead of using a target fragment to pass results, the fragment requesting a result should use setFragmentResultListener to register a FragmentResultListener with a
requestKey
using its parent fragment manager. The fragment delivering a result should then call setFragmentResult using the same requestKey
. Consider using setArguments to pass the requestKey
if you need to support dynamic request keys.
Optional target for this fragment. This may be used, for example, if this fragment is being started by another, and when done wants to give a result back to the first. The target set here is retained across instances via FragmentManager.putFragment().
Parameters
The fragment that is the target of this one.
Optional request code, for convenience if you are going to call back with onActivityResult.